﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Neitzel.Irc.Client;

namespace Neitzel.Tests
{
    /// <summary>
    /// Tests of the IRC Client Library.
    /// </summary>
    [TestClass]
    public class IrcClientTests
    {
        /// <summary>
        /// Test the IrcClient Class
        /// </summary>
        [TestMethod]
        public void IrcClientTest()
        {
            using (var client = new IrcClient())
            {
                client.Configuration.ServerConfig.HostName = "127.0.0.1";
                client.Configuration.ServerConfig.Port = 6667;
                client.Configuration.ServerConfig.Nickname = "Test1";
                client.Configuration.ServerConfig.AlternativeNickname = "Test2";
                client.Configuration.ServerConfig.FullName = "Anton Tester";
                client.Configuration.ServerConfig.Email = @"test@nowhere.local";
                client.Connect();
            }
        }
    }
}
